package com.example.demo.design.chain_responsibility.solution;

/**
 * @Author: liull
 * @Description: 抽象处理者 Handler同等功能
 * @Date: Created in 16:39 2020/12/24
 * @Modified By:
 */
public abstract class Approver {

    protected Approver successor;

    protected String name;

    public Approver(String name) {
        this.name = name;
    }

    public void setSuccessor(Approver successor) {
        this.successor = successor;
    }

    public abstract void processRequest(PurchaseRequest request);
}
